package com.smartao.base.entityitem;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smartao.core.dao.BaseDao;
import com.smartao.core.orm.Page;
import com.smartao.core.orm.PageRequest;
import com.smartao.core.service.BaseEntityService;

@Service
public class EntityitemServiceImpl extends BaseEntityService<Entityitem, Long> implements EntityitemService {

	@Autowired
	private EntityitemDao entityitemDao;
	
	@Autowired
	private EntityitemMapper entityitemMapper;
	
	@Override
	protected BaseDao<Entityitem, Long> getDao() {
		return entityitemDao;
	}

	@Override
	public Page<Entityitem> pageQuery(Entityitem entityitem,PageRequest pageRequest) {
		return entityitemMapper.pageQuery(entityitem,pageRequest);
	}

	@Override
	public Entityitem findByEntityKey(String entityKey) {
		return entityitemDao.findByEntityKey(entityKey);
	}

}
